package com.zyz.K_集合.Map接口一HashMap.练习;

/**
 * @author: vick
 * @Date: 2025/3/31
 * @Description:
 * @version: 1.0
 */
public class Employee {
    String name;
    String dep;
    double salary;

    public Employee(String name, String dep, double salary) {
        this.name = name;
        this.dep = dep;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDep() {
        return dep;
    }

    public void setDep(String dep) {
        this.dep = dep;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", dep='" + dep + '\'' +
                ", salary=" + salary +
                '}';
    }
}
